package com.kevin.spring.dto;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;

public class Person {

	@Autowired
	private Work work;

	/**
	 * @return the work
	 */

	public Work getWork() {
		return work;
	}

	/**
	 * @param work
	 *            the work to set
	 */

	public void setWork(Work work) {
		this.work = work;
	}

	public int age;
	public String name;

	private String sex;

	/**
	 * @return the sex
	 */
	public String getSex() {
		return sex;
	}

	/**
	 * @param sex
	 *            the sex to set
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}

	public Person() {
		System.out.println("invoke");
	}

	public Person(Work work) {

		this.work = work;
	}

	public Person(int age, String name) {
		this.age = age;
		this.name = name;
	}
}
